//
//  AddTicketMemberCell.h
//  ImGuider
//
//  Created by 王鹏宇 on 2017/12/15.
//  Copyright © 2017年 AudioCtrip. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TicketTypeModel.h"
#import "TicketMemberInfoModel.h"
#import "ReduceTicketPersonCell.h"


@protocol AddTicketMenberDelegate <NSObject>

- (void)addMemBerType:(NSInteger)type;

- (void)addMemBerType:(NSInteger)type WithNum:(NSInteger)num;

- (void)deleteMemberWith:(TicketMemberInfoModel *)model WithType:(NSInteger)type;
@end

@interface AddTicketMemberCell : UITableViewCell<UITableViewDelegate,UITableViewDataSource,ReduceTicketPersonCellDelegate>

@property (nonatomic, weak) id<AddTicketMenberDelegate> delegate;

@property (weak, nonatomic) IBOutlet UILabel *ticketTypeLabel;

@property (weak, nonatomic) IBOutlet UILabel *priceLabel;

@property (weak, nonatomic) IBOutlet UIView *tiecktNumView;

@property (weak, nonatomic) IBOutlet UILabel *numLabel;

@property (weak, nonatomic) IBOutlet UIButton *reduceBtn;

@property (weak, nonatomic) IBOutlet UIButton *plusBtn;

@property (weak, nonatomic) IBOutlet UITableView *tableView;

@property (nonatomic)NSInteger currentNum;

@property (nonatomic, strong)NSMutableArray<TicketMemberInfoModel *> * dataSource;


@property (nonatomic)NSInteger ticketType;

@property (nonatomic)BOOL needdetail;//是否需要实名制

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *numViewWidth;


+(CGFloat)getCellHeightWith:(NSInteger)personNum;

- (void)configTicketType:(TicketTypeModel *)typeModel;

@end
